package lab02.Test35;

/**
 * Created by lenovo on 2017/11/22.
 */
public class Application {
    public static void main(String[] args) {
        Manager m=new  Manager("张三",1000);
        Salesman s=new Salesman("李四",2000,80,50);
        Worker w=new Worker("王五",28,80);

        System.out.println("经理"+ w.getName() +"的工资是"+ w.computeSalary());
        System.out.println("销售员"+s.getName()+"的工资是"+s.computeSalary());
        System.out.println("工人"+w.getName()+"的工资是"+w.computeSalary());
    }

    private static class Manager {
        public Manager(String 张三, int i) {
        }
    }
}
